package demoMod.invincibleOne.interfaces;

import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.powers.AbstractPower;

public interface IOnCurseAddToHand {
    void onCurseAddToHand(AbstractCard c);

    static void curseAddToHand(AbstractCard c) {
        for (AbstractPower p: AbstractDungeon.player.powers) {
            if (p instanceof IOnCurseAddToHand) {
                ((IOnCurseAddToHand) p).onCurseAddToHand(c);
            }
        }
    }
}
